Control.PanelIndex

Used to get or set the panel of a TabPanel or PagePanel on which the control has been placed. The first panel is numbered zero.

Syntax

PanelIndex( Integer ) as


Parameters

Integer


Notes

If the control has been placed on a panel of a TabPanel or PagePanel control, it returns the panel number. If the control is not on a PagePanel or TabPanel, it returns -1. If you change the PanelIndex to a nonexistent panel, the control will disappear until you give it a PanelIndex value that corresponds to a panel that exists.